using Docker.Admin.Application.Contract.build;
using Microsoft.AspNetCore.Mvc;

namespace Docker.Admin.HttpApi.Host.Controllers;

[ApiController]
[Route("api/[controller]")]
public class DockerController : ControllerBase
{
    private readonly IBuildService _buildService;

    public DockerController(IBuildService buildService)
    {
        _buildService = buildService;
    }

    [HttpPost]
    public async Task CreateAsync(IFormFile file)
    {
        await _buildService.BuildAsync(file);
    }
}